package File;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file=new File("./demo.txt");
        String name =file.getName();
        System.out.println(name);
        long len =file.length();
        System.out.println(len);

        boolean ih=file.canWrite();
        boolean cr=file.isHidden();
        boolean cw=file.canRead();
        System.out.println(ih);
        System.out.println(cr);
        System.out.println(cw);
    }
}
